package cn.lg.soar.boot.fc.entity.vo;

import cn.lg.soar.core.annotations.constraints.group.Create;
import cn.lg.soar.core.annotations.constraints.group.Update;
import cn.lg.soar.database.base.entity.BaseEntity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 合租房间表
 * @author ZhuanZ（无密码）
 * @since 2025-01-18
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
@ApiModel(value = "Lease", description = "合租房间表")
public class LeaseVo{

    /** 合租ID */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 校区ID */
    @ApiModelProperty(value = "校区ID")
    private Long campusId;

    @ApiModelProperty(value = "简单的校区")
    private CampusEasyVo campusEasyVo;

    /** 楼栋ID */
    @ApiModelProperty(value = "楼栋ID")
    private Long buildingId;

    @ApiModelProperty(value = "楼栋简单vo")
    private BuildingEasyVo buildingEasyVo;

    /** 单元ID */
    @ApiModelProperty(value = "单元ID")
    private Long unitId;

    @ApiModelProperty(value = "单元简单vo")
    private UnitEasyVo unitEasyVo;

    /** 楼层ID */
    @ApiModelProperty(value = "楼层ID")
    private Long floorId;

    @ApiModelProperty(value = "简单的楼层vo")
    private FloorEasyVo floorEasyVo;

    /** 房间ID */
    @ApiModelProperty(value = "房间ID")
    private Long roomId;

    @ApiModelProperty(value = "简单的房间vo")
    private RoomEasyVo roomEasyVo;

    /** 单室房间名称 */
    @ApiModelProperty(value = "单室房间名称")
    private String name;

    /** 单室房间图片 */
    @ApiModelProperty(value = "单室房间图片")
    private String img;

    /** 单室房间面积 */
    @ApiModelProperty(value = "单室房间面积")
    private String area;

    /** 月租金 */
    @ApiModelProperty(value = "月租金")
    private String rent;

    /** 朝向 */
    @ApiModelProperty(value = "朝向")
    private String orient;

    /** 使用状态(0-空置 1-待签约 2-已租 3-维修中 4-不能居住) */
    @ApiModelProperty(value = "使用状态(0-空置 1-待签约 2-已租 3-维修中 4-不能居住)")
    private Integer useState;

    /** 乐观锁 */
    @ApiModelProperty(value = "乐观锁")
    private Integer version;

    @JsonIgnore
    public Long primaryKey() {
        return this.id;
    }

}
